package com.qin.vo;

import java.util.Date;
import java.util.List;

import com.qin.entity.Order;

import lombok.Data;

@Data
public class OrderVo {
	private Long id;
	private Long userId;
	private String userName;
	private Double price;
	private Boolean commentStatus;
	private Boolean paymentStatus;
	private Boolean status;
	private Date createTime;

	private List<BookVo> books;

	public OrderVo() {
		super();
	}

	public OrderVo(Order order) {
		super();
		this.id = order.getId();
		this.userId = order.getUserId();
		this.price= order.getPrice() ;	
		this.paymentStatus = order.getPaymentStatus();
		this.status = order.getStatus();
		this.userName = order.getUserName();
		this.createTime = order.getCreateTime();
	}

}
